home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak Vol E-12
/
Vol E-12.iso
/
games
/
barbie
/
barbi000.swf
/
scripts
/
frame_3
/
PlaceObject2_112_32
/
CLIPACTIONRECORD onClipEvent(keyDown).as
next >
Wrap
Text File
|
2012-05-21
|
924b
|
38 lines
onClipEvent(keyDown){
if(Key.getCode() == Key.LEFT || Key.getCode() == Key.RIGHT || Key.getCode() == Key.UP)
{
if(_root.life == 0)
{
if(_root.reset == 0)
{
_root.reset = 1;
if(Key.getCode() == Key.LEFT)
{
_root.dir -= 1;
if(_root.dir < 1)
{
_root.dir += 4;
}
_root.direction();
}
if(Key.getCode() == Key.RIGHT)
{
_root.dir += 1;
if(4 < _root.dir)
{
_root.dir -= 4;
}
_root.direction();
}
if(Key.getCode() == Key.UP)
{
_root.move();
}
if(Key.getCode() == Key.DOWN)
{
}
}
}
}
}